# Maintainer: Alexey Pavlov <alexpux@gmail.com>

pkgname=xmlto
pkgver=0.0.26
pkgrel=2
pkgdesc="Convert xml to many other formats"
arch=('i686' 'x86_64')
url="http://cyberelk.net/tim/software/xmlto/"
license=('GPL')
groups=('base-devel')
depends=('libxslt' 'perl-YAML-Syck' 'perl-Test-Pod')
makedepends=('docbook-xsl')
source=("https://fedorahosted.org/releases/x/m/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
md5sums=('c90a47c774e0963581c1ba57235f64f4')

build() {
  cd "$srcdir/${pkgname}-${pkgver}"

  ./configure --prefix=/usr \
              --mandir=/usr/share/man
  make
}

package() {
  cd "$srcdir/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
